package com.hospital.wx.controller.form;

import com.hospital.wx.util.annotation.NoSensitiveWords;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "添加回复表单")
public class AddReplyForm {

    @NotNull(message = "被回复评论ID不能为空")
    private int commentId;

    @NotNull(message = "回复评论者ID不能为空")
    private int userId;

    @NotBlank(message = "回复内容不能为空")
    @NoSensitiveWords(message = "评论内容包含敏感词，请修改后再提交")
    private String content;

    @Schema(description = "回复者回复回复的ID，可以为空")
    private int replyToReplyId;
}
